From: Evan Welsh Date: Tue, 5 Jul 2022 16:13:15 +0000 (-0400) Subject: ci: Switch ESLint rule eqeqeq to smart mode X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~267 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9ebde6ca2d226d0c6f693034a68166a541f18db4;p=gnome-shell.git ci: Switch ESLint rule eqeqeq to smart mode This allows comparisons like != null and == null while still erroring on other usages of == and !=. Part-of: --- diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml index 42a829a63..e0356b1e4 100644 --- a/lint/eslintrc-shell.yml +++ b/lint/eslintrc-shell.yml @@ -4,6 +4,9 @@ rules: - properties: never allow: [^vfunc_, ^on_] consistent-return: error + eqeqeq: + - error + - smart key-spacing: - error - mode: minimum